<?php
/*Project constants
 * 
 */

define("ORG_NAME","CRP - Network Sockets Map"); //Organization, Company name

/* Database Configuration*/
define("DB_SERVER","localhost");
define("DB_NAME","php/networkmap.db");
define("DB_USER","");
define("DB_PASSWORD","");
define("TABLE","map");

/*Number of floors*/
$floorsNumbers = array('0','1','2','3','4','5','6','7');

/*Number of Racks per floor */
$racksLetters = array('A','B');

/*Number of sockets to be shown on a row within the panel */
define("SOCKETS_PER_ROW","16");

/*Set Locales and Date and Time format*/
setlocale(LC_TIME, "Rome");
setlocale(LC_TIME, "italian");
setlocale(LC_TIME, "it_IT");
date_default_timezone_set('Europe/Rome');
$date = strftime('%d %B %Y -  %H:%M');

/*Authentication method: Basic, LDAP */
define("AUTH_METHOD", "Basic");

/* Credentials for Basic Authentication*/
$_user_ = 'test';
$_password_ = 'test';
define("LDAP_SERVER","zeus");
define("DOMAIN_SUFFIX","@consiglio.puglia.it");
/*LDAP configuration*/
//echo "<h3>LDAP query test</h3>";
//echo "Connecting ...";
  // must be a valid LDAP server!
//echo "connect result is " . $ds . "<br />";
define("DN", "OU=cadan,OU=Sistema Informativo CRP,DC=consiglio,DC=puglia,DC=it");
//define("LDAP_USER", $_SERVER['PHP_AUTH_USER']);
//define("LDAP_PW",$_SERVER['PHP_AUTH_PW']);
//$_user_LDAP = $_SERVER['PHP_AUTH_USER'];
//$_password_LDAP = $_SERVER['PHP_AUTH_PW'];
